{if count($Mapping) == 0 || count($PrefCd) > 0}
<form name="frmSchName" method="post" onSubmit="return submitForm(document.frmSchName);" action="{$apm.baseurl}search/{$form_act}">
{if count($Mapping) == 0}<p class="searchAttTxt01">検索条件に該当する学校はありませんでした。</p>
{else}<p style="color:#3360c6; font-size:110%;">検索条件の変更</p>{/if}
	<!-- searchSchoolName -->
	<div id="searchSchoolName">
		<!-- inputBlock -->
		<div class="inputBlock">
			<!-- innerBlock -->
			<div class="innerBlock">
				<!-- block01 -->
				<div class="block01">
					<p>
						<input type="text" name="sch_name" id="sch_name" size="24" maxlength="40" value="{$sch_name}" />
					</p>
				</div>
				<!-- /block01 -->
				<!-- block02 -->
				<div class="block02">
					<p class="btn">
						<input name="imageField" type="image" class="rollImg" id="imageField" src="/images/search/common/btn_search_03.gif" alt="検索" />
					</p>
				</div>
				<!-- /block02 -->
			</div>
			<!-- /innerBlock -->
		</div>
		<!-- /inputBlock -->
	</div>
	<!-- /searchSchoolName -->
{if count($PrefCd) > 0}
{foreach from=$PrefCd item=cd}<input type="hidden" name="PrefCd[]" value="{$cd}" />{/foreach}
{/if}
<input type="hidden" name="SrhType" value="{$request.SrhType}" />
<input type="hidden" name="janru_cd" value="{$request.janru_cd}" />
</form>
{/if}
{if count($Mapping) > 0}
<form name="frmSchList" method="post" action="{if $request.SrhType == $srhtype_map }{$apm.baseurl}search/chizusearch{else}{$apm.baseurl}rstobi/rstobi{/if}">
	<!-- schoolNameList -->
	<div id="schoolNameList">
		<table>
			<tr>
				<th class="icon">&nbsp;</th>
				<th nowrap="nowrap" class="name">学校･キャンパス名</th>
				<th class="address">所在地</th>
			</tr>
			{foreach from=$Mapping item=v}
			<tr>
				<td class="icon">
					{if $request.SrhType == $srhtype_list }
						{if $v.JANRU_CD == 16007 }
							<img src="/images/search/common/icon_school_01.gif" alt="大学" width="19" height="18" />
						{elseif $v.JANRU_CD == 16006}
							<img src="/images/search/common/icon_school_02.gif" alt="短期" width="19" height="18" />
						{else}
							<img src="/images/search/common/icon_school_03.gif" alt="専門" width="19" height="18" />
						{/if}
					{elseif $request.SrhType == $srhtype_map }
						{if $v.JANRU_CD == 331 }
							<img src="/images/search/common/icon_school_01.gif" alt="大学" width="19" height="18" />
						{else}
							<img src="/images/search/common/icon_school_02.gif" alt="短期" width="19" height="18" />
						{/if}
					{/if}
				</td>
				<td nowrap="nowrap" class="name">
					{if $request.SrhType == $srhtype_map }<a href="javascript:submitFormMap('{$v.SCH_CD}','{$v.PREF_CD}','{$v.KEIDO}','{$v.IDO}');">
					{else}<a href="javascript:submitFormList('{$v.SCH_CD}');">{/if}
					{$v.SCH_NAME}</a></td>
				<td class="address">{$v.SHOZAICHI}</td>
			</tr>
			{/foreach}
		</table>
	</div>
	<!-- /schoolNameList -->
{if !$request.sch_cd}<input type="hidden" name="sch_cd" />{/if}
{if !$request.PrefCd}<input type="hidden" name="PrefCd" />{/if}
<input type="hidden" name="x" />
<input type="hidden" name="y" />
{$hiddenTag}
</form>
{/if}
{literal}
<SCRIPT language="javascript">
<!--
function submitForm(obj){
	if(obj.name=="frmSchName"){
		if(obj.sch_name.value==""){
			alert("『学校名』を入力してください。");
			obj.sch_name.focus();
			return false;
		}
	}
	//obj.submit();
	return true;
}
function submitFormList(sch_cd){
	document.frmSchList.sch_cd.value = sch_cd;
	document.frmSchList.submit();
}
function submitFormMap(sch_cd,pref_cd,ido,keido){
	document.frmSchList.sch_cd.value = sch_cd;
	document.frmSchList.PrefCd.value = pref_cd;
	document.frmSchList.x.value = ido;
	document.frmSchList.y.value = keido;
	document.frmSchList.submit();
}
//-->
</SCRIPT>
{/literal}
